package com.dc.datacollect.dto;

import com.dc.datacollect.constant.type.UserType;
import lombok.Data;

/**
 * 基本用户dto
 * 基本用户与收集者抽象-类
 *
 * @author zhuangjie
 * @date 2023/06/19
 */
@Data
public class SysUserDTO {
    private Long id;
    private Short type;
    private String username;
    private String nickname;

    public boolean isCollector() {
        return UserType.COLLECTOR.equals(this.type);
    }
}
